]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
app: Don't abort if a .desktop file has no Exec= key
authorColin Walters <walters@verbum.org>
Mon, 19 Sep 2011 18:07:13 +0000 (14:07 -0400)
committerColin Walters <walters@verbum.org>
Mon, 19 Sep 2011 18:13:20 +0000 (14:13 -0400)
Seen in the wild in nautilus-pastebin-configurator.desktop.

src/shell-app.c

index 7535a8199380a856e5dcce0b57eed3288a1ce029..c813d9166a6789da51263f5210927e470b32e439 100644 (file)
@@ -1171,6 +1171,9 @@ trim_exec_line (const char *str)
 {
   const char *start, *end, *pos;
 
+  if (str == NULL)
+    return NULL;
+
   end = strchr (str, ' ');
   if (end == NULL)
     end = str + strlen (str);